.meeting-transcript {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 400px;
  max-height: 500px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 999;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.transcript-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.transcript-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.record-button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #ff4757;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.record-button:hover {
  background: #ff3742;
  transform: scale(1.05);
}

.record-button.recording {
  background: #2ed573;
  animation: pulse 1.5s infinite;
}

.record-button.recording:hover {
  background: #26d065;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
  }
}

.toggle-button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.toggle-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.transcript-controls button:not(.record-button):not(.toggle-button) {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.transcript-controls button:not(.record-button):not(.toggle-button):hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.transcript-content {
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.transcript-status {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.status-indicator.active {
  color: #2ed573;
}

.status-indicator.active::before {
  background: #2ed573;
  animation: pulse 1.5s infinite;
}

.interim-text {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 6px;
  font-size: 12px;
  color: #667eea;
  font-style: italic;
  border-left: 3px solid #667eea;
}

.transcript-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.transcript-list::-webkit-scrollbar {
  width: 6px;
}

.transcript-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.transcript-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.transcript-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.empty-transcript {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.empty-transcript p {
  margin: 8px 0;
  font-size: 14px;
}

.transcript-entry {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.transcript-entry:hover {
  background: rgba(0, 0, 0, 0.02);
}

.transcript-entry:last-child {
  border-bottom: none;
}

.transcript-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: #666;
}

.speaker {
  font-weight: 600;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.timestamp {
  color: #999;
}

.confidence {
  color: #999;
  font-size: 10px;
}

.transcript-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
}

.transcript-unsupported {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  text-align: center;
  color: #666;
}

.transcript-unsupported p {
  margin: 8px 0;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .meeting-transcript {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    max-height: 60vh;
  }

  .transcript-header {
    padding: 12px 16px;
  }

  .transcript-header h3 {
    font-size: 14px;
  }

  .record-button {
    width: 32px;
    height: 32px;
  }

  .transcript-controls button:not(.record-button):not(.toggle-button) {
    width: 28px;
    height: 28px;
  }

  .transcript-entry {
    padding: 12px 16px;
  }

  .transcript-text {
    font-size: 13px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .meeting-transcript {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .transcript-status {
    background: rgba(255, 255, 255, 0.05);
  }

  .transcript-entry:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .transcript-text {
    color: #e0e0e0;
  }

  .transcript-meta {
    color: #aaa;
  }

  .timestamp,
  .confidence {
    color: #888;
  }

  .empty-transcript {
    color: #888;
  }
}
